﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="UcContent.ascx.cs" Inherits="SearchEngine.CMS.Client.UcContent" %>
 <%@ Register src="../../GoogleMaps/GoogleMapsControl.ascx" tagname="GoogleMapsControl" tagprefix="uc1" %>
 <div id="giua">
     <asp:Repeater ID="rpthienthi" runat="server" EnableViewState="False">
     <HeaderTemplate>
        <ul>
     </HeaderTemplate>
     <ItemTemplate>
                    	<li>
                        	 <div class ="item">
                                	<table width="100%" cellpadding="2" cellspacing="0" cellpadding="20">
                            <tbody>
                                <tr>
                                    <td>
                                        <div class="tendichvu">
                                            <a href="#" ><%#Eval("TenDiaDiem")%></a>
                                        </div>
                                        <div class="hinhanh">
                                            <img src="images/<%#Eval("TenDichVu")%>.png" width="80" height="80"  />
                                         </div>
                                    <td>
                                        
                                </tr>
                                <tr>
                                    <td>
                                        <div class="diachi">
                                            <span>Địa chỉ: <%#Eval("SoNha")%> <%#Eval("TenDuong")%>, phường <%#Eval("TenPhuong")%>, quận <%#Eval("TenQuanHuyen")%>, <%#Eval("TenTinhThanh")%></span>
                                        </div>
                                       
                                    <td>
                                </tr>
                                <tr>
                                    <td>
                                         <div class="loaihinh">
                                            <span>Loại hình:  <%#Eval("TenDichVu")%></span>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <div  class="ghichu">
                                            <span><%#Eval("ChuThich")%>
                                             </span>
                                           </div>
                                    <td>
                                </tr>
                                <tr>
                                    <td>
                                        <div class="link2">
                                              <a href="/GMap.aspx?Id=<%#Eval("MaTenDiaDiem")%>" target="_blank">Xem bản đồ <marque> >> </marque></a>
                                            <div id="thongtingooglemap<%#Eval("MaTenDiaDiem") %>" style="display:none; width: 600px; position: fixed; z-index: 100001;">
    <div class="pop_main_all">
        <div class="pop_sd_top">
            <div class="pop_sd_right">
                <div class="pop_sd_left">
                    <div class="pop_sd_center">
                        <div class="pop_title">
                            <div class="div_popup_title">
                                <div class="t_pop_left" id="divLoginMove" enableviewstate="false">
                                    <%#Eval("TenDiaDiem")%>
                                </div>
                                <div class="t_pop_right">
                                    <a href="#" onclick="Close2();"></a>
                                   
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="pop_sd_center">
            <div class="pop_sd_right">
                <div class="pop_sd_left">
                    <div class="pop_sd_content">
                        <div class="div_pop_content">
                            <div id="ctl00_cphLeft_ShopStep1_upLogin">
	                                    <div class="div_input_r">
                                        <div class="div_tr">
                                                <div id="mymap<%#Eval("MaTenDiaDiem")%>"></div>
                                            
                                        </div>
                                    </div>
                        </div>
                        </div>
                        <div class="clear">
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="pop_sd_bottom">
            <div class="pop_sd_right">
                <div class="pop_sd_left">
                    <div class="pop_sd_center">
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
                                        </div>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                              <div>
                        </li>
     </ItemTemplate>
     <FooterTemplate>
     </ul>
     </FooterTemplate>
     </asp:Repeater>
             
                      
                    
                    <div id="phantrang">
                     <center>
                     	<div class="page">
                             <asp:Label ID="lbphantrang" runat="server" Text="Label"></asp:Label>
                        </div>
                       
                     </center>
                 	
                 </div>
</div>

<script type="text/javascript">
    function Show2(str) {
        var kq = '#thongtingooglemap' + str;
        Hienthigoogmap(str);
        $(kq).modal();
    }
    function Hienthigoogmap(Str)
     {
         $.ajax({
             url: "GoogleMAP.aspx",
             type: "GET",
             data: "Ma=" + Str,
             success: function(html) {
             var hien ="mymap"+Str;
             var hienthi = $("#" + hien);
                 getGoogleMaps(hien,"38.69052609303235", "-9.297544956207275","test","test");
             }

         });
    }
    function Close2() {
        $.modal.close();
    }
</script>